package com.killer.leaf.feign;


import com.killer.common.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("shop-leaf-service")
@RequestMapping("/snowflake")
public interface SnowFlakeClient {

    @RequestMapping("/getId")
    public Result<Long> getId();

    @RequestMapping("/getBatch")
    public Result<List<Long>> getBatch(@RequestParam(value = "batch")Integer batch);
}
